﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MemoLib.Tasks
{
    public class CycleTaskCard : TaskCard
    {
        private int interval = 0;
        /// <summary>
        /// 工卡任务间隔时间（用于循环类任务）
        /// </summary>
        public int Interval
        {
            get { return interval; }
            set { interval = value; }
        }

        private FrequencyType frequency;
        /// <summary>
        /// 任务执行的频度
        /// </summary>
        public FrequencyType Frequency
        {
            get { return frequency; }
            set { frequency = value; }
        }

        private int? quantity = 0;
        /// <summary>
        /// 数量，比如间隔两个月，Quantity就是2，频度就是月
        /// </summary>
        public int? Quantity
        {
            get { return quantity; }
            set { quantity = value; }
        }

        public int? Month = null;
        public int? Weekday = null;
        public int? Day = null;
        public int? Hour = null;
        public int? Minute = null;
        public bool IfOnlyWorkday; //对于每天提醒项，是否只是工作日提醒，周末不提醒（null==true）
        private DateTime createDate;

        public DateTime CreateDate
        {
            get { return createDate; }
            set { createDate = value; }
        }
    }
}
